//
//  Device_Ex.swift
//  Dawn
//
//  Created by cuicheng on 2021/9/18.
//

import UIKit

extension UIDevice {
    //获取设备信息
    //ios版本
    var iosVersion: String {
        return UIDevice.current.systemVersion
    }
    //设备名称
    var deviceName: String {
        return UIDevice.current.name
    }
    //系统名称
    var systemname: String {
        return UIDevice.current.systemName
    }
    //设备型号
    var mode: String {
        return UIDevice.current.model
    }
    //设备区域化型号如A1533
    var localizedMode: String {
        return UIDevice.current.localizedModel
    }
}
